package com.amir.common.beans

import com.amir.common.utils.Constant
import com.amir.common.utils.SPUtils

data class CompanyLoginEntity(
    val data: Data
) : BaseResult()

data class Data(
    val AccountId: Int,
    val CmpyCode: String,
    val CmpyCatg: Int,
    val EmployeeId: Int,
    val EmployeeName: String,
    val SysId: Int,
    var AppId: String,
    var AppName: String,
    var TemplateCode: String
) {

    fun save() {
        SPUtils.save(Constant.CmpyCode, this.CmpyCode)
        SPUtils.save(Constant.APPId, this.AppId)
        SPUtils.save(Constant.TemplateCode, this.TemplateCode)
        SPUtils.save(Constant.CmpyCatg, this.CmpyCatg)
    }
}